package ${packageName};

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
<#list importList as package>
import ${package};
</#list>

@RestController
@RequestMapping("${requestMapping}")
public class ${controllerName} {
    @Resource
    private ${serviceName} ${name};

    <#list methodList as method>
    @JsonIgnore
    @PostMapping("${method.methodName}")
    public ${method.returnType} ${method.methodName}(<#list method.paramList as param>${param.type} ${param.name}</#list>)<#if (method.exceptionList?size>0)> throws <#list method.exceptionList as exception>${exception}</#list></#if> {
        <#if (method.returnType != "void")>return</#if> ${name}.${method.methodName}(<#list method.paramList as param>${param.name}</#list>);
    }

    </#list>
}